package com.westos.controller;

import com.alibaba.druid.util.StringUtils;
import com.westos.service.UserService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;


/**
 * @Description:
 * @Author: 大强
 * @CreateTime: 2020/1/12
 * @Company: 西部开源教育科技有限公司
 */
public class DemoController extends MultiController {
    public UserService userService;



    public void login(HttpServletRequest req, HttpServletResponse resp) {
        try {
            userService.getDao();
            resp.getWriter().write("login");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public void regist(HttpServletRequest req, HttpServletResponse resp){
        try {
            resp.getWriter().write("demo");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public UserService getUserService() {
        return userService;
    }

    public void setUserService(UserService userService) {
        this.userService = userService;
    }
}
